package com.bawei.wyg.greendaomodel;

import org.greenrobot.greendao.query.WhereCondition;

import java.util.List;

public interface DaoCRUD<T> {

    //添加一条数据
    boolean insert(T t);
    //添加列表数据
    boolean inserts(List<T> datas);
    //以下方法同上
    boolean delete(T t);

    boolean deletes(List<T> datas);

    boolean update(T t);

    boolean updates(List<T> datas);

    T select(WhereCondition whereCondition);

    List<T> selectAll();




}
